<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p id="p"></p>
    <script>
        /* join 将数组拼接为字符串 */
        var arr = ["html","css","javascript"]
        console.log(arr.join()); // html,css,javascript
        console.log(arr.join("|")); // html|css|javascript
        console.log(arr.join(""));  // htmlcssjavascript

        var p = document.getElementById("p")
        var arr = ["1994","犯罪","剧情"]
        var str = arr.join("/")
        p.innerHTML = str
        console.log(p);
    </script>
</body>
</html>